package com.adam.mbt.mapper;

import com.adam.mbt.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserMapper {
    //这个方式我自己加的
    List<User> selectAllUser();

    User selectByPrimaryKey(Integer userId);

    User findUserByIdAndUserName(@Param("userId") Integer userId, @Param("userName") String userName);

    List<User> getUserByMap(Map<String, Object> paramMap);

    List<User> getUserByBean(User user);

    List<User> getUserByPage(@Param("startNum") Integer startNum, @Param("endNum") String endNum,User user);



    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

}
